import {Redirect,Route,Switch,HashRouter} from 'react-router-dom';
import React from 'react';
import Login from '../login/login'
import Home from '../home/index'
// import PaymentOrder from '../paymentOrder/index'
// import Reapair from '../repairMangement/index'
// import System from '../systemManagement/index'
// import User from '../userManagement/index'
function Routers(props) {
    return (
        <div className="homeMainPage">
            <HashRouter>
                <Switch>
                    <Route path='/login' component={Login} />
                    <Route path='/home' component={Home}>
                    </Route>
                    <Redirect to='/login'/>
                </Switch>
            </HashRouter>
        </div>
    )
}
export default Routers;